class Res<T>{
  int code;
  String msg;
  var data;
  var extResult;

  Res(this.code, this.msg,this.data);
  ///请求是否成功
  bool isSuccess(){
     return code==0||code==200;
  }

  get success=>isSuccess();
}